package com.imchen.cms.exception;

/**
 * @author imchen
 * @create: 2019-01-14 07:35
 **/
public class GlobalException extends  Exception{

    private int code;

    public GlobalException(String message)
    {
        super(message);
    }

    public GlobalException(String message, int code)
    {
        super(message);
        this.code = code;
    }

    public void setCode(int code)
    {
        this.code = code;
    }

    public int getCode()
    {
        return code;
    }


}
